#pragma once
#include <mutex>
#include <condition_variable>
#include <chrono>
class CEvtVar {
	std::mutex m_mtex;
	std::condition_variable m_condvar;

public:
    bool m_flag;
	CEvtVar();
	~CEvtVar();
	int wait(int ms);
	void notify();
};
